-- GENERATED SPELL FOR [Area 52 Death Machine] --


function spell0_21976(pUnit, Event) --@Rocket Launcher,n/a--
pUnit:FullCastSpellOnTarget(38083,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21976', 17000, 1)
end

function Sorts_21976(pUnit, Event)
local choix_sorts_21976 = math.random(0, 0)
if choix_sorts_21976 == 0 then
pUnit:RegisterEvent('spell0_21976', 1, 1)
end
end

function mob21976_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21976', math.random(1500, 3000), 1)
end

function mob21976_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21976_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21976_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21976, 1, 'mob21976_Action')
RegisterUnitEvent(21976, 2, 'mob21976_Leave')
RegisterUnitEvent(21976, 3, 'mob21976_Kill')
RegisterUnitEvent(21976, 4, 'mob21976_Die')
